package com.baoke.service;

import com.spring.*;

/**
 * @author 暴珂
 * @version 1.0
 * @description
 * @date 2024/6/4 11:48:28
 */
@Component("userService")
//@Scope("prototype")
public class UserService implements InitializingBean {

    @Autowired
    public OrderService orderService;

    public String beanName;

    public String name;

    public void test () {
        System.out.println(orderService);
        System.out.println(name);
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("初始化");
    }

    public void setName(String name) {
        this.name = name;
    }
}
